//
//  mainViewController.m
//  myMusicApp
//
//  Created by 11_wyq on 15/6/17.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "mainViewController.h"
#import "MainTabBarController.h"
@interface mainViewController ()
{
    drawerViewController *_drawer;
}

@end

@implementation mainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    _drawer = [[drawerViewController alloc]init];
    [self addChildViewController:_drawer];
    [self.view addSubview:_drawer.view];
    _drawer.view.frame = CGRectMake( - self.view.frame.origin.x, 0, self.view.frame.size.width, self.view.frame.size.height);
   
    MainTabBarController *tabBar = [[MainTabBarController alloc]init];
    [self addChildViewController:tabBar];
    [self.view addSubview:tabBar.view];
    
    
 
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
